Back
MASM : INTEGER (VECTOR) : IBITCOUNT
IBITCOUNT:

Syntax:

  • IBITCOUNT Rd3 BS Rs0
Description:

Calculates the number of bits set to "1" in address contained in Rs0 and puts the result in Rd3 according to BS (bank select). Instruction is stack conditioned.

Microcode Pattern:

Takes 5 cycles to execute.
    Example: IBITCOUNT A3 3 A0

	  
	MPC   BS3 C3 P3 P0
	------------------
	IBNC   0  0  00 A0
	  -    0  0  00 00
	  -    0  0  00 00
	  -    0  0  00 00
	  -    3  0  A3 00

	  
Exceptions :

No exceptions.

Example :

IBITCOUNT 0x21 3 0x20  !! Calculate the number of bits set 
                       !! to "1" in content of register 0x20
                       !! and put the result in register 0x21

APE Group Zeuthen. 2003
$Id: ibitcount_masm.php,v 1.2 2004/08/04 09:43:10 noe Exp $
$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $